package com.asb.utils;

import com.jfinal.kit.Prop;

public class PropertiesKit {

	private static String appkey;
	private static String appsecret;
	private static String agentid;
	private static String processcode;
	private static String aes_token;
	private static String aes_key;
	private static String corpId;
	private static String api_token;

	public PropertiesKit(Prop properties) {
		PropertiesKit.appkey = properties.get("ding.appkey");
		PropertiesKit.appsecret = properties.get("ding.appsecret");
		PropertiesKit.agentid = properties.get("ding.agentid");
		PropertiesKit.processcode = properties.get("ding.processcode");
		PropertiesKit.aes_token = properties.get("ding.aes_token");
		PropertiesKit.aes_key = properties.get("ding.aes_key");
		PropertiesKit.corpId = properties.get("ding.corpId");
		PropertiesKit.api_token = properties.get("ding.api_token");
	}

	public static String getAppkey() {
		return appkey;
	}

	public static String getAppsecret() {
		return appsecret;
	}

	public static Long getAgentid() {
		return Long.parseLong(agentid);
	}

	public static String getProcesscode() {
		return processcode;
	}
	
	public static String geTaes_token() {
		return aes_token;
	}
	
	public static String getAes_key() {
		return aes_key;
	}
	
	public static String getCorpId() {
		return corpId;
	}
	
	public static String getApi_token() {
		return api_token;
	}

}
